home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
EnigmA Amiga Run 1997 February
/
EnigmA AMIGA RUN 15 (1997)(G.R. Edizioni)(IT)[!][issue 1997-02][PLANET CD V].iso
/
enigma
/
earcd
/
emula
/
arosdv19.lha
/
AROS
/
devs
/
makefile
< prev
next >
Wrap
Makefile
|
1996-10-25
|
1KB
|
50 lines
# $Id: makefile,v 1.11 1996/10/25 14:28:54 aros Exp $
TOP=..
include $(TOP)/config/make.cfg
OBJDIR = $(GENDIR)/devs
DEVS = $(DEVSDIR)/ram.handler \
$(DEVSDIR)/nil.handler
FILES = console cdinputhandler rawkeyconvert
all: setup \
$(foreach f,$(FILES),$(OSGENDIR)/$(f).o) \
$(DEVS)
setup:
@if [ ! -d $(OSGENDIR) ]; then $(MKDIR) $(OSGENDIR) ; else true ; fi
@if [ ! -d $(OBJDIR) ]; then $(MKDIR) $(OBJDIR) ; else true ; fi
@if [ ! -d $(DEVSDIR) ]; then $(MKDIR) $(DEVSDIR) ; else true ; fi
clean:
$(RM) $(OSGENDIR)
$(RM) $(DEVSDIR)
$(OSGENDIR)/%.o: %.c
$(CC) $(CFLAGS) $< -c -o $@ 2>&1|tee $*.err
if test ! -s $*.err; then rm $*.err ; else true ; fi
$(OBJDIR)/%.o: %.c
$(CC) $(CFLAGS) -c $< -o $@
$(DEVSDIR)/%.handler: $(OBJDIR)/%_handler.o
$(CC) $(ILDFLAGS) $< -o $@
$(OSGENDIR)/%.d: %.c
@if [ ! -d $(OSGENDIR) ]; then $(MKDIR) $(OSGENDIR) ; else true ; fi
@$(RM) $@
@touch $@
$(MKDEPEND) -p$(OSGENDIR)/
$(OBJDIR)/%.d: %.c
@if [ ! -d $(OBJDIR) ]; then $(MKDIR) $(OBJDIR) ; else true ; fi
@$(RM) $@
@touch $@
$(MKDEPEND) -p$(OBJDIR)/
include $(foreach f,$(FILES),$(OSGENDIR)/$(f).d)
include $(OBJDIR)/ram_handler.d $(OBJDIR)/nil_handler.d